package com.stock.service.impl;

import com.stock.mapper.StockMapper;
import com.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {

    @Autowired(required = false)
    private StockMapper stockMapper;

    @Override
    public Integer reduceStock(Integer shopId) {
        return stockMapper.reduceStock(shopId);
    }
}
